# -*- coding:utf-8 -*-
from flask import Flask

__author__ = 'harumonia'


def create_app():
    '''
    将核心对象初始化
    :return:
    '''
    app = Flask(__name__)
    app.config.from_object('config')
    register_blueprint(app)
    return app


def register_blueprint(app):
    '''
    注册蓝图
    :param app:
    :return:
    '''
    from app.stage.stage import stage
    app.register_blueprint(stage)
